// 全局样式

html,
body,
#app {
    height: 100%;
    padding: 0;
    margin: 0;
    --bg: white;
    --btnBG: #641E8C;
    background: var(--bg);
    // 红色渐变
    --redLiner: linear-gradient(270deg, #F4617D 0%, #B02943 96%);
    // 绿色渐变
    --greenLiner: linear-gradient(270deg, #10B4B4 0%, #009999 91%);
}

#app {
    display: flex;
    flex-direction: column;

    // 全选多选框
    .ant-checkbox-wrapper {
        .ant-checkbox {
            &::after {
                border-color: transparent;
            }
            .ant-checkbox-inner {
                border-color: var(--btnBG);

                &:hover {
                    border-color: var(--btnBG);
                }
            }

            &.ant-checkbox-checked {
                .ant-checkbox-inner {
                    background: var(--btnBG);
                }
            }
        }
    }

    // 全局按钮
    .ant-btn {
        font-size: 18px;
        line-height: 1;
        border-color: var(--btnBG);
        color: var(--btnBG);

        &.active {
            color: white;
            background: var(--btnBG);
            border: none;
        }

        &:hover {
            span {
                color: inherit !important;
            }
        }
    }

    .layout-wrapper {
        display: flex;
        flex-direction: column;
        flex: 1;
        height: 100%;

        // 头部
        &>header {
            display: flex;
            height: 96px;
            color: black;
            flex-shrink: 0;
            align-items: center;
            padding: 0 30px;
            background: #F3F5F7;
            gap: 15px;

            // logo
            .logo {
                width: 140px;
                height: 48px;
            }

            // 这下面的按钮
            .ant-btn {
                height: 48px;
                padding: 0 20px;
                border: none;
            }

            // 消息
            .message {
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 0 20px;
                height: 44px;
                background: #FFFFFF;
                box-shadow: 0 1px 50px 0 rgba(0, 0, 0, 0.02);
                border-radius: 8px;
            }

            // 个人信息
            .person-info {
                display: flex;
                align-items: center;
                gap: 10px;

                // 头像
                img {
                    border-radius: 50%;
                    width: 64px;
                    height: 64px;
                }

                // 右边
                .right {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    gap: 10px;

                    .name {
                        font-size: 20px;
                        color: #333333;
                    }

                    p {
                        opacity: 0.64;
                        font-size: 14px;
                        color: #333333;
                    }
                }
            }

            // 语言选项
            .ant-dropdown-trigger {
                height: 44px;
                border: none;
            }

            a {
                padding: 7px 20px;
                background: white;
                border-radius: 5px;
                color: inherit;
                align-items: center;
                display: flex;
                gap: 15px;
                font-weight: 600;
                font-size: 12px;

                &::after {
                    content: '';
                    width: 7px;
                    height: 7px;
                    border: 0 solid #000;
                    border-width: 1px 1px 0 0;
                    transform: rotate(45deg);
                }

                &:active {
                    color: inherit;
                }
            }
        }

        &>main {
            flex: 1;
            padding: 10px 30px;
            overflow: hidden auto;
        }
    }
}